/** 
 * 系统管理平台路由
 *  
 **/

import Layout from '@/layout'

const sysRouter = {
    path: '/sys',
    component: Layout,
    name: 'sys',
    redirect:'/dashboard',
    meta: {
      title: '系统管理',
      icon: 'el-icon-s-help'
    },
    
    children: [
      {
        path: 'userlist',
        component: () => import('@/views/sys/userlist'),
        name: 'userlist',
        meta: { 
          title: '用户管理',
          icon:'user' 
        }
      },
      {
        path: 'rolelist',
        component: () => import('@/views/sys/rolelist'),
        name: 'rolelist',
        meta: { 
          title: '角色管理',
          icon:'user' 
        }
      },
      {
        path: 'orgmain',
        component: () => import('@/views/sys/orgmain'),
        name: 'orgmain',
        meta: { 
          title: '组织管理',
          icon:'user' 
        }
      },
      {
        path: 'userrolemain',
        component: () => import('@/views/sys/userrolemain'),
        name: 'userrolemain',
        meta: { 
          title: '用户角色',
          icon:'user' 
        }
      },
      {
        path: 'userorgmain',
        component: () => import('@/views/sys/userorgmain'),
        name: 'userorgmain',
        meta: { 
          title: '用户组织',
          icon:'user' 
        }
      },
      {
        path: 'menumain',
        component: () => import('@/views/sys/menumain'),
        name: 'menumain',
        meta: { 
          title: '菜单管理',
          icon:'user' 
        }
      },
      {
        path: 'rolemenumain',
        component: () => import('@/views/sys/rolemenumain'),
        name: 'rolemenumain',
        meta: { 
          title: '角色菜单',
          icon:'user' 
        }
      },
      {
        path: 'userpwd',
        component: () => import('@/views/sys/userpwd'),
        name: 'userpwd',
        meta: { 
          title: '修改密码',
          icon:'user' 
        }
      },
      {
        path: 'roletypelist',
        component: () => import('@/views/sys/roletypelist'),
        name: 'roletypelist',
        meta: { 
          title: '角色类型',
          icon:'user' 
        }
      },
      {
        path: 'demo',
        component: () => import('@/views/sys/demo'),
        name: 'demo',
        meta: { 
          title: 'demo',
          icon:'user' 
        }
      },
      {
        path: 'menutree_check',
        component: () => import('@/views/sys/menutree_check'),
        name: 'menutree_check',
        meta: { 
          title: 'menutree_check',
          icon:'user' 
        }
      },
    ]
}
export default sysRouter
